@use 'sass:meta';

// the build process *might* inject a function, `fontPath`, that returns the
// path to where the font awesome font files will be once the app is built.
// the webpack version doesn't need an explicit font path.
$fa-font-path: if(meta.function-exists('-mm-fa-path'), -mm-fa-path(), null);
// our own fonts are relative to this file AND the built css file, so we don't
// need to get fancy with our own fonts like we do with font awesome's
$font-path: './fonts';

@forward '@fortawesome/fontawesome-free/scss/fontawesome' with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/brands' as fabrand-* with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/solid' as fasolid-* with (
  $fa-font-path: $fa-font-path
);
@forward '@fortawesome/fontawesome-free/scss/regular' as faregular-* with (
  $fa-font-path: $fa-font-path
);

// Brand Evolution Font Families

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-RegularItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Geist';
  src: url('#{$font-path}/Geist/Geist-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'MMSans';
  src: url('#{$font-path}/MMSans/MM_Sans-Variable.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

// MMSans Vairable Font - supports: 400, 500, 600, 700, 800, 900

@font-face {
  font-family: 'MMSans';
  src: url('#{$font-path}/MMSans/MM_Sans-Variable.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'MMPoly';
  src: url('#{$font-path}/MMPoly/MM_Poly-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
